﻿using System;
using System.Windows;
using MyFloridaHouse.ServiceConn.DistrBldrSvcRef;

namespace MyFloridaHouse.libSvOpenDistricts.DataService
{
    public partial class ServiceDAL
    {
        public void GetShapeUogIDs(string iWKT, int iBuildingLayerID, int iDistrictID, System.EventHandler<GetShapeUogIDsCompletedEventArgs> completedHandler)
        {
            try
            {

				var proxy = new DistrBldrClient(_relativeBindingName);
                //var proxy = new MyDistrictBuilderServiceClient(myRelativeBinding, myRelativeCensusDataServiceAddress);
                proxy.GetShapeUogIDsCompleted += completedHandler;
                proxy.GetShapeUogIDsAsync(iWKT, iBuildingLayerID, iDistrictID);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
    }
}
